/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package session;

import ejb.Utente;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Gemma
 */
@Local
public interface GestUtenteLocal {
    void addUtente(String nome, String mail, String password, String gruppo);
    
    boolean login_attempt(String mail, String password);
    String getMail(String mail, String password);
    String getPassword(String mail, String password);
    String getGruppo(String mail, String password);
    String getNome(String mail, String password);
    
    public List<Utente> findAll();

    /**
     *
     * @param mail
     * @param password
     * @return
     */
    String getID(String mail, String password);
    String getMailByID(String idUtente);
    String getIDByMail(String mail);
    
    
}
